package cn.silver.module.system.domain;


import cn.silver.framework.mybatis.annotation.Table;
import cn.silver.framework.mybatis.annotation.TableField;
import cn.silver.framework.mybatis.domain.BaseEntity;
import cn.silver.framework.mybatis.enums.SearchTypeEnums;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@Table(name = "sys_user_avatar")
@EqualsAndHashCode(callSuper = true)
@Schema(name = "SysUserAvatar", title = "用户头像")
public class SysUserAvatar extends BaseEntity {
    /**
     * 归属用户
     */
    @Schema(title = "归属用户")
    @TableField(name = "user_id", searchType = SearchTypeEnums.EQ)
    private String userId;

    /**
     * 名称
     */
    @Schema(title = "名称")
    private String fileName;
    /**
     * 保存路径
     */
    @Schema(title = "保存路径")
    private String filePath;

    /**
     * 上传时间
     */
    @Schema(title = "上传时间")
    private Date uploadTime;
    /**
     * 状态
     */
    @Schema(title = "状态")
    @TableField(name = "status", searchType = SearchTypeEnums.EQ)
    private String status;
}
